package override;

import java.util.ArrayList;
import java.util.List;

public class Rectangle extends Graph {
    
    public Rectangle(List<Point> listPoint){
        super(listPoint);
    }

    @Override
    public int getPointCount(){
        int count = super.getPointCount();
        sub();
        System.out.println("Rectangel:getPointCount");
        return count;
    }
    
    private void sub() {
        System.out.println("Rectangel:sub");
    }

    /**
     * @param args
     *
     * @author grind
     * @date May 29, 2014 11:30:17 AM
     */
    public static void main(String[] args){
        List<Point> listPoint = new ArrayList<Point>();
        listPoint.add(new Point(0,0));
        listPoint.add(new Point(1,1));
        Rectangle rect = new Rectangle(listPoint);
        
        rect.getPointCount();
    }

}
